# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=gi-docgen
pkgver=2024.1
pkgrel=0
pkgdesc="A documentation generator for GObject-based libraries"
url="https://gitlab.gnome.org/GNOME/gi-docgen"
arch="noarch"
license="Apache-2.0 OR GPL-3.0-or-later"
depends="
	py3-jinja2
	py3-markdown
	py3-markupsafe
	py3-packaging
	py3-pygments
	py3-typogrify
	python3
	"
subpackages="$pkgname-pyc"
makedepends="meson"
source="https://gitlab.gnome.org/GNOME/gi-docgen/-/archive/$pkgver/gi-docgen-$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
e3d11418caea657bf0f0d421a8c84adf0c90ee9e6715554c8e81aa882a4c34f4c9c865497a853b7acc6cd62ea8010c2684fcc6cbd7ce1b3e6eeef6149f4c8576  gi-docgen-2024.1.tar.gz
"
